package service.impl;

import java.sql.SQLException;
import java.util.List;

import module.Shop;
import domain.vo.queryObject;
import service.ShopService;
/**
 * 
* @ClassName: ShopServiceImpl 
* @Description: 门店服务层实现
* @author chenchao
* @date 2014年1月16日 下午2:37:33 
*
 */
public class ShopServiceImpl  extends ShopService{

	@Override
	public Shop getById(String id) throws SQLException {
		return shopDAO.getById(id);
	}

	@Override
	public List<Shop> getAll() throws SQLException {
		return shopDAO.getAll();
	}

	@Override
	public void insertObject(Shop t) throws SQLException {
		 shopDAO.insertT(t);
	}

	@Override
	public void updateObject(Shop t) throws SQLException {
		shopDAO.updateT(t);
	}

	@Override
	public void deleteT(int id) throws SQLException {
		shopDAO.deleteT(id);
	}

	@Override
	public List<Shop> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		return shopDAO.getObjectByQueryObject(queryObject);
	}

	@Override
	public int countByQueryObject(queryObject queryObject) throws SQLException {
		return shopDAO.countByQueryObject(queryObject);
	}

}
